import { IScriptListState } from "./types";
import { ActionTree } from "vuex";
import { IState } from "../types";
import { ListHandle } from "@/service/list";
const actions: ActionTree<IScriptListState, IState> = {
  async getScriptList({ commit }) {
    const res = await ListHandle.getScriptList();
    console.log("res:", res);
    
    //保存
    commit("saveScriptList", res.data.scriptList)
    
  },
};

export { actions };
